<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>利用verticl-align实现图片文字垂直居中对齐</title>
    <style>
        img {
            /* vertical-align: bottom; */
            /* 让图片和文字垂直居中vertical-align: middle; */
            vertical-align: top;
        }
        
        textarea {
            resize: none;
            outline: none;
            vertical-align: middle;
        }
    </style>
</head>
<!-- verticl-align只对行元素和行内块元素有效 -->

<body>
    <img src="images/ldh.jpg" alt=""> jink是刘德华
    <br>
    <textarea name="" id="" cols="30" rows="10"></textarea>请你留言
</body>

</html>